package com.example.pattern.db

import android.graphics.Bitmap
import android.os.Parcelable
import androidx.room.Entity
import androidx.room.PrimaryKey
import kotlinx.android.parcel.Parcelize
//序列化
@Parcelize
@Entity(tableName = "picture_table")
data class Picture(
    //主键 自增长
    @PrimaryKey(autoGenerate = true)
    val pid:Int,
    var name:String,
    var time:String,
    var url:String,
    var thumbnail:Bitmap
):Parcelable